<template>
  <view class="pages">
    <view class="card" @click="goPages(0,item.id)" v-for="item,index in list" :key="index"
      ><p>{{item.name}}</p>
      <u-icon name="arrow-right" color="#999999" size="16"></u-icon
    ></view>
    <view class="card" @click="goPages(1)"
      ><p>关于平台</p>
      <u-icon name="arrow-right" color="#999999" size="16"></u-icon
    ></view>
  </view>
</template>

<script>
export default {
  data() {
    return {
		list:[]
	};
  },
  onLoad() {
  	this.rq.getData('daren/introduce_cate').then(res=>{
		this.list = res.data
	})
  },
  methods: {
    goPages(index,id) {
      if (index == 0) {
        uni.navigateTo({
          url: "/subpages/platform/play-north/play-north?id="+id,
        });
      } else if (index == 1) {
        uni.navigateTo({
          url: "/subpages/platform/about-platform/about-platform?title=关于平台&type=gypt",
        });
      }
    },
  },
};
</script>

<style lang="scss" scoped>
.pages {
  .card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20rpx;
    margin: 20rpx;
    background: #ffffff;
    border-radius: 15rpx;
	font-size: 28rpx;
  }
}
</style>
